

class PointModel {
  int? id;
  //实际对应底图大小的值
  int? pointX;
  int? pointY;

  //当前屏幕计算的值
  int? x;
  int? y;

  int? deviceType;
  String? deviceTypeStr;
  int? bindFlag;
  double? coverRatio;
  int? areaId;
  int? area;
  int? bindId;
  int? deviceId;
  String? bindTime;
  int? deviceStatus;

  PointModel(
      {this.id,
        this.pointX,
        this.pointY,
        this.x,
        this.y,
        this.deviceType,
        this.deviceTypeStr,
        this.bindFlag,
        this.coverRatio,
        this.areaId,
        this.area,
        this.bindId,
        this.deviceId,
        this.bindTime,
        this.deviceStatus});

  PointModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    pointX = json['pointX'];
    pointY = json['pointY'];
    x = pointX;
    y = pointY;
    deviceType = json['deviceType'];
    deviceTypeStr = json['deviceTypeStr'];
    bindFlag = json['bindFlag'];
    coverRatio = json['coverRatio'];
    areaId = json['areaId'];
    area = json['area'];
    bindId = json['bindId'];
    deviceId = json['deviceId'];
    bindTime = json['bindTime'];
    deviceStatus = json['deviceStatus'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['pointX'] = this.pointX;
    data['pointY'] = this.pointY;
    data['deviceType'] = this.deviceType;
    data['deviceTypeStr'] = this.deviceTypeStr;
    data['bindFlag'] = this.bindFlag;
    data['coverRatio'] = this.coverRatio;
    data['areaId'] = this.areaId;
    data['area'] = this.area;
    data['bindId'] = this.bindId;
    data['deviceId'] = this.deviceId;
    data['bindTime'] = this.bindTime;
    data['deviceStatus'] = this.deviceStatus;
    return data;
  }
}
